-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] Update docstrings (remove reST leftovers and resolve D200) #16525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[py] Update docstrings (remove reST leftovers and resolve D200) #16525
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
|
@cgoldberg please review 🙏 |
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thanks.
User description
🔗 Related Issues
relates to #16432
💥 What does this PR do?
This pull request makes minor improvements to code documentation throughout several modules. The main change is the standardization of docstring formatting for class and method documentation, improving readability and consistency.
Documentation standardization:
browser.py,input.py,permissions.py,webextension.py) to single-line style for better clarity and consistency. [1] [2] [3] [4]firefox/options.pyto use multi-line format with explicit return value descriptions, making documentation more readable. [1] [2] [3]print_page_options.pyandscript.pyto improve formatting and clarity. [1] [2]🔧 Implementation Notes
i've added D200 rule locally and fixed all warns with no changes in rules in the main repo
💡 Additional Considerations
🔄 Types of changes
PR Type
Documentation
Description
Standardize docstring formatting to single-line style
Convert multi-line docstrings to PEP 257 compliant format
Resolve D200 ruff linting warnings across BiDi modules
Improve docstring consistency in Firefox and print options
Diagram Walkthrough
File Walkthrough
browser.py
Standardize Browser class docstring formatpy/selenium/webdriver/common/bidi/browser.py
input.py
Standardize Input class docstring formatpy/selenium/webdriver/common/bidi/input.py
permissions.py
Standardize Permissions class docstring formatpy/selenium/webdriver/common/bidi/permissions.py
script.py
Standardize script conversion method docstringpy/selenium/webdriver/common/bidi/script.py
webextension.py
Standardize WebExtension class docstring formatpy/selenium/webdriver/common/bidi/webextension.py
print_page_options.py
Reformat print options docstring to PEP 257py/selenium/webdriver/common/print_page_options.py
options.py
Reformat Firefox options docstrings to PEP 257py/selenium/webdriver/firefox/options.py